class PayTypeEntity {
  String? deepType;
  String? levelNum;
  List<PayTypeInfo>? options;

  PayTypeEntity({this.deepType, this.levelNum, this.options});

  PayTypeEntity.fromJson(Map<String, dynamic> json) {
    deepType = json['deepType'];
    levelNum = json['levelNum'];
    if (json['options'] != null) {
      options =  <PayTypeInfo>[];
      json['options'].forEach((v) {
        options!.add(new PayTypeInfo.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deepType'] = this.deepType;
    data['levelNum'] = this.levelNum;
    if (this.options != null) {
      data['options'] = (options??[]).map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class PayTypeInfo {
  int? code;
  String? access;
  String? hasChild;
  String? levelName;
  String? value;

  PayTypeInfo({this.code, this.access, this.hasChild, this.levelName, this.value});

  PayTypeInfo.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    access = json['access'];
    hasChild = json['hasChild'];
    levelName = json['levelName'];
    value = json['value'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['access'] = this.access;
    data['hasChild'] = this.hasChild;
    data['levelName'] = this.levelName;
    data['value'] = this.value;
    return data;
  }
}